import _http from '@/utils/http'

export default {
  productList(params, loading) {
    return _http('post', {
      url: '/eas/mobile/pack/productList',
      apiName: '获取充值产品列表'
    }, params, loading)
  },

  listByPack(params, loading) {
    return _http('post', {
      url: '/eas/mobile/pack/listByPack',
      apiName: '获取可购买套餐'
    }, params, loading)
  },

  listByAddiPack(params, loading) {
    return _http('post', {
      url: '/eas/mobile/pack/listByAddiPack',
      apiName: '获取可购买加油包'
    }, params, loading)
  },

  listByAddi(params, loading) {
    return _http('post', {
      url: '/eas/mobile/pack/listByAddi',
      apiName: '获取加油包'
    }, params, loading)
  },

  packToPay(params, loading) {
    return _http('post', {
      url: '/eas/mobile/pay/packToPay',
      apiName: '订购套餐'
    }, params, loading)
  },

  recentcode(params, loading) {
    return _http('post', {
      url: '/eas/mobile/index/recentCode',
      apiName: '获取最近充值的设备用户码'
    }, params, loading)
  },

  cards(params, loading) {
    return _http('post', {
      url: '/eas/mobile/index/cards',
      apiName: '获取登录用户的所有设备用户码'
    }, params, loading)
  },

  cardInfo(params, loading) {
    return _http('post', {
      url: '/eas/mobile/index/cardInfo',
      apiName: '我的设备详情'
    }, params, loading)
  },

  packDesc(params, loading) {
    return _http('post', {
      url: '/eas/mobile/index/packDesc',
      apiName: '套餐详细说明'
    }, params, loading)
  },
}



